<?php
class LoaiTaiSan extends Model{
    public function ton_tai_loai_tai_san($ma_loai_ts){
        $ma_loai_ts = strtoupper($ma_loai_ts);
        $where = "`ma_loai_tai_san` = '$ma_loai_ts'";
        $order = "";
        $data = "`loaitaisan_id`";
        $this->select(LT2N_PREFIX.'_loaitaisan', $where, $order, $data);
        if($this->numrow($this->getDt()) == 1 ){
            return true;
        } else {
            return false;
        }

    }


}
?>